package com.xyc.student.exception;


import lombok.Data;
import lombok.Getter;

/**
 * @author Joel
 * @date 2022/2/28
 * 自定义异常
 */

@Data
@Getter
public class ServiceException extends RuntimeException {
    private String code;

    public ServiceException(String code, String msg) {
        super(msg);
        this.code = code;
    }

}
